# syntax=docker/dockerfile:1
# docker build -f Dockerfile --tag playwright-demo:v1.0.0 .

FROM playwright-python:v1.0.0

WORKDIR /app

COPY requirements.txt .
COPY demo.py .

RUN pip install --upgrade pip -i https://mirrors.aliyun.com/pypi/simple/ --root-user-action=ignore \
    && pip install -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple/ --root-user-action=ignore

CMD ["python", "demo.py"]
